<?php

use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\Pjax;

/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var backend\modules\syscfg\models\PubsysctrlinfoSearch $searchModel
 */

$this->title = Yii::t('app', '系统控制参数');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="pubsysctrlinfo-index">
    <!-- <div class="page-header">
            <h3><?= Html::encode($this->title) ?></h3>
    </div> -->
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
       <!--  <?php echo Html::a(Yii::t('app', 'Create {modelClass}', [
                           'modelClass' => 'Pubsysctrlinfo',
                       ]), 
                       ['create'], 
                       ['class' => 'btn btn-success']
                       )
       ?> -->
    </p>

    <?php Pjax::begin(); echo GridView::widget([

        'panel' => [
            'heading'=>'<h3 class="panel-title"><i class="glyphicon glyphicon-th-list"></i> '.Html::encode($this->title).' </h3>',
            'type'=>'info',
            'before'=>Html::a('<i class="glyphicon glyphicon-plus"></i> Add', ['create'], ['class' => 'btn btn-success']),                                                                                                                                                          'after'=>Html::a('<i class="glyphicon glyphicon-repeat"></i> Reset List', ['index'], ['class' => 'btn btn-info']),
            'showFooter'=>false
        ],
        'dataProvider' => $dataProvider,
        //'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'BRC',
            'SYSSTATUS',
            'TRANDATE',
            'PREDATE',
            'NEXTDATE',
            'ACCDATE', 
            'YEARENDDATE', 
            'CRY', 
            'ARBCRY', 
            'DEBUGLOGLVL', 
            'FLAG', 

            [
                'class' => 'kartik\grid\ActionColumn',
                /*
                'buttons' => [
                'update' => function ($url, $model)
                    {
                        return Html::a('<span class="glyphicon glyphicon-pencil"></span>',
                            Yii::$app->urlManager->createUrl(['pubsysctrlinfo/update','id' => $model->BRC, 'edit'=>'t']),
                            [
                                'title' => Yii::t('yii', 'Edit'),
                            ]);
                    }
                ],
                */
            ],
        ],
        'responsive'=>true,
        'hover'=>true,
        'condensed'=>true,
        'floatHeader'=>true,

    ]); Pjax::end(); ?>

</div>
